#!/bin/bash

#WEB panel for BigLinux
#
#Authors:
#  Bruno Goncalves Araujo <www.biglinux.com.br>
#
#License: GPLv2 or later
#################################################



. /usr/share/bigcontrolcenter/default/theme-categories.sh.htm

#Translation
export TEXTDOMAINDIR="/usr/share/locale-langpack"
export TEXTDOMAIN=bigcontrolcenter 

echo '
<script language="JavaScript">
window.resizeTo(640,310);
function NoResize(){
  window.resizeTo(640,310);
}
</script>
'

title=$"Selecionar interface do BrOffice.org"
apply=$"Aplicar"
close=$"Sair"
#title
echo "<title>$title</title><body onResize=\"NoResize();\">"

#header
open_header
echo "$title" '</font><br>'
close_header

if [ "$(cat ~/.oooforce)" = "" ]
then
  automatico_check="checked"
fi

if [ "$(cat ~/.oooforce)" = "kde" ]
then
  kde_check="checked"
fi

if [ "$(cat ~/.oooforce)" = "gnome" ]
then
  gnome_check="checked"
fi

echo "<table width=95%><tr><td>"

#Exibir resposta para o usuario
echo "<form action=submit.sh.htm method=get><center><b>" $"Selecione a interface a ser utilizada:" "</b></center><p><br>
<input type=radio name=escolha id=1 value= $automatico_check><label for=1>" $"Automatico - Utilizar interface de acordo com o Desktop em uso." "</label><p>

<input type=radio name=escolha id=2 value=kde $kde_check><label for=2>" $"KDE - Melhor integracao com dispositivos, exemplos: CDs e PenDrives.""</label><p>

<input type=radio name=escolha id=3 value=gnome $gnome_check><label for=3>" $"Gnome - Melhor compatiblidade com extensoes, integracao com o tema do sistema e suporte a bluetooth.""</label><p>
"

echo "</td></tr></table>"


echo "</div><div id=\"rodape\"><button type=submit value= $apply  >   <img src=\"/usr/share/bigcontrolcenter/default/images/ok.png\" style=\"vertical-align:top\" />  $apply   </button>  <button type=button value= $close onClick= parent.location='/usr/share/bigbashview/exemplo2.sh.htm?close=True'>   <img src=\"/usr/share/bigcontrolcenter/default/images/cancel.png\" style=\"vertical-align:top\"  />  $close     </button></div>"

